#ifndef NEWSETTINGS_H
#define NEWSETTINGS_H

#include <QObject>
#include <QSettings>

class SettingsMenu;
class QSettings;
class QKeySequence;

class Settings : public QObject
{
    Q_OBJECT
public:
    Settings(QObject* parent = 0);
    QKeySequence getKey();
    void setKey(const QKeySequence &key);

public slots:
    void openNewSettingsMenu();
    void changeHotkey(const QKeySequence& key);

private:
    SettingsMenu* settingsMenu;
    QSettings settings;

signals:
    void newHotkeyHasBeenSet();

};

#endif // NEWSETTINGS_H
